package com.demo;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@EnableDiscoveryClient
public class ApplicationMain {

	public static void main(String[] args) {
		// SpringApplication.run(ApplicationMain.class,args);
		
		// It is often desirable to call setWebEnvironment(false) when using
		// SpringApplication within a JUnit test.
		new SpringApplicationBuilder(ApplicationMain.class).web(true).run(args);

	}
}
